<?php
/**
 * Desc：
 * Author：Fly
 * DateTime：2020/9/14 23:00
 */

namespace root;

use FlyToper\PearBackend\PearBackendController;

require_once '../vendor/autoload.php';


$act = $_REQUEST['act'];
if(empty($act)) {
    $act = 'index';
}

$obj = new PearBackendController();
switch ($act) {
    case 'index':
    case 'menu':
    case 'demo':
        echo $obj->{$act}();
        break;
    default:
        echo '页面找不到！';
        break;
}
